home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Compilers / digital marsC compier / dm / include / win32 / winnls.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-05-17  |  39.0 KB  |  1,150 lines

  1. /**************************************************************************
  2. *                                                                         *
  3. * winnls.h -- NLS procedure declarations, constant definitions and macros *
  4. *                                                                         *
  5. * Copyright (c) 1991-1996, Microsoft Corp. All rights reserved.           *
  6. *                                                                         *
  7. **************************************************************************/
  8.  
  9.  
  10. #ifndef _WINNLS_
  11. #define _WINNLS_
  12.  
  13.  
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17.  
  18. #ifndef NONLS
  19.  
  20.  
  21. /***************************************************************************\
  22. * Constants
  23. *
  24. * Define all constants for the NLS component here.
  25. \***************************************************************************/
  26.  
  27.  
  28. /*
  29.  *  String Length Maximums.
  30.  */
  31. #define MAX_LEADBYTES        12             /* 5 ranges, 2 bytes ea., 0 term. */
  32. #define MAX_DEFAULTCHAR      2              /* single or double byte */
  33.  
  34.  
  35. /*
  36.  *  MBCS and Unicode Translation Flags.
  37.  */
  38. #define MB_PRECOMPOSED       0x00000001     /* use precomposed chars */
  39. #define MB_COMPOSITE         0x00000002     /* use composite chars */
  40. #define MB_USEGLYPHCHARS     0x00000004     /* use glyph chars, not ctrl chars */
  41. #define MB_ERR_INVALID_CHARS 0x00000008     /* error for invalid chars */
  42.  
  43. #define WC_DEFAULTCHECK      0x00000100     /* check for default char */
  44. #define WC_COMPOSITECHECK    0x00000200     /* convert composite to precomposed */
  45. #define WC_DISCARDNS         0x00000010     /* discard non-spacing chars */
  46. #define WC_SEPCHARS          0x00000020     /* generate separate chars */
  47. #define WC_DEFAULTCHAR       0x00000040     /* replace w/ default char */
  48.  
  49.  
  50.  
  51. /*
  52.  *  Character Type Flags.
  53.  */
  54. #define CT_CTYPE1            0x00000001     /* ctype 1 information */
  55. #define CT_CTYPE2            0x00000002     /* ctype 2 information */
  56. #define CT_CTYPE3            0x00000004     /* ctype 3 information */
  57.  
  58. /*
  59.  *  CType 1 Flag Bits.
  60.  */
  61. #define C1_UPPER             0x0001         /* upper case */
  62. #define C1_LOWER             0x0002         /* lower case */
  63. #define C1_DIGIT             0x0004         /* decimal digits */
  64. #define C1_SPACE             0x0008         /* spacing characters */
  65. #define C1_PUNCT             0x0010         /* punctuation characters */
  66. #define C1_CNTRL             0x0020         /* control characters */
  67. #define C1_BLANK             0x0040         /* blank characters */
  68. #define C1_XDIGIT            0x0080         /* other digits */
  69. #define C1_ALPHA             0x0100         /* any linguistic character */
  70.  
  71. /*
  72.  *  CType 2 Flag Bits.
  73.  */
  74. #define C2_LEFTTORIGHT       0x0001         /* left to right */
  75. #define C2_RIGHTTOLEFT       0x0002         /* right to left */
  76.  
  77. #define C2_EUROPENUMBER      0x0003         /* European number, digit */
  78. #define C2_EUROPESEPARATOR   0x0004         /* European numeric separator */
  79. #define C2_EUROPETERMINATOR  0x0005         /* European numeric terminator */
  80. #define C2_ARABICNUMBER      0x0006         /* Arabic number */
  81. #define C2_COMMONSEPARATOR   0x0007         /* common numeric separator */
  82.  
  83. #define C2_BLOCKSEPARATOR    0x0008         /* block separator */
  84. #define C2_SEGMENTSEPARATOR  0x0009         /* segment separator */
  85. #define C2_WHITESPACE        0x000A         /* white space */
  86. #define C2_OTHERNEUTRAL      0x000B         /* other neutrals */
  87.  
  88. #define C2_NOTAPPLICABLE     0x0000         /* no implicit directionality */
  89.  
  90. /*
  91.  *  CType 3 Flag Bits.
  92.  */
  93. #define C3_NONSPACING        0x0001         /* nonspacing character */
  94. #define C3_DIACRITIC         0x0002         /* diacritic mark */
  95. #define C3_VOWELMARK         0x0004         /* vowel mark */
  96. #define C3_SYMBOL            0x0008         /* symbols */
  97.  
  98. #define C3_KATAKANA          0x0010         /* katakana character */
  99. #define C3_HIRAGANA          0x0020         /* hiragana character */
  100. #define C3_HALFWIDTH         0x0040         /* half width character */
  101. #define C3_FULLWIDTH         0x0080         /* full width character */
  102. #define C3_IDEOGRAPH         0x0100         /* ideographic character */
  103. #define C3_KASHIDA           0x0200         /* Arabic kashida character */
  104. #define C3_LEXICAL           0x0400         /* lexical character */
  105.  
  106. #define C3_ALPHA             0x8000         /* any linguistic char (C1_ALPHA) */
  107.  
  108. #define C3_NOTAPPLICABLE     0x0000         /* ctype 3 is not applicable */
  109.  
  110.  
  111. /*
  112.  *  String Flags.
  113.  */
  114. #define NORM_IGNORECASE           0x00000001  /* ignore case */
  115. #define NORM_IGNORENONSPACE       0x00000002  /* ignore nonspacing chars */
  116. #define NORM_IGNORESYMBOLS        0x00000004  /* ignore symbols */
  117.  
  118. #define NORM_IGNOREKANATYPE       0x00010000  /* ignore kanatype */
  119. #define NORM_IGNOREWIDTH          0x00020000  /* ignore width */
  120.  
  121.  
  122.  
  123. /*
  124.  *  Locale Independent Mapping Flags.
  125.  */
  126. #define MAP_FOLDCZONE             0x00000010  /* fold compatibility zone chars */
  127. #define MAP_PRECOMPOSED           0x00000020  /* convert to precomposed chars */
  128. #define MAP_COMPOSITE             0x00000040  /* convert to composite chars */
  129. #define MAP_FOLDDIGITS            0x00000080  /* all digits to ASCII 0-9 */
  130.  
  131.  
  132. /*
  133.  *  Locale Dependent Mapping Flags.
  134.  */
  135. #define LCMAP_LOWERCASE           0x00000100  /* lower case letters */
  136. #define LCMAP_UPPERCASE           0x00000200  /* upper case letters */
  137. #define LCMAP_SORTKEY             0x00000400  /* WC sort key (normalize) */
  138. #define LCMAP_BYTEREV             0x00000800  /* byte reversal */
  139.  
  140. #define LCMAP_HIRAGANA            0x00100000  /* map katakana to hiragana */
  141. #define LCMAP_KATAKANA            0x00200000  /* map hiragana to katakana */
  142. #define LCMAP_HALFWIDTH           0x00400000  /* map double byte to single byte */
  143. #define LCMAP_FULLWIDTH           0x00800000  /* map single byte to double byte */
  144.  
  145. #define LCMAP_LINGUISTIC_CASING   0x01000000  /* use linguistic rules for casing */
  146.  
  147. #define LCMAP_SIMPLIFIED_CHINESE  0x02000000  /* map traditional chinese to simplified chinese */
  148. #define LCMAP_TRADITIONAL_CHINESE 0x04000000  /* map simplified chinese to traditional chinese */
  149.  
  150.  
  151.  
  152. /*
  153.  *  Locale Enumeration Flags.
  154.  */
  155. #define LCID_INSTALLED            0x00000001  /* installed locale ids */
  156. #define LCID_SUPPORTED            0x00000002  /* supported locale ids */
  157.  
  158.  
  159. /*
  160.  *  Code Page Enumeration Flags.
  161.  */
  162. #define CP_INSTALLED              0x00000001  /* installed code page ids */
  163. #define CP_SUPPORTED              0x00000002  /* supported code page ids */
  164.  
  165.  
  166. /*
  167.  *  Sorting Flags.
  168.  *
  169.  *    WORD Sort:    culturally correct sort
  170.  *                  hyphen and apostrophe are special cased
  171.  *                  example: "coop" and "co-op" will sort together in a list
  172.  *
  173.  *                        co_op     <-------  underscore (symbol)
  174.  *                        coat
  175.  *                        comb
  176.  *                        coop
  177.  *                        co-op     <-------  hyphen (punctuation)
  178.  *                        cork
  179.  *                        went
  180.  *                        were
  181.  *                        we're     <-------  apostrophe (punctuation)
  182.  *
  183.  *
  184.  *    STRING Sort:  hyphen and apostrophe will sort with all other symbols
  185.  *
  186.  *                        co-op     <-------  hyphen (punctuation)
  187.  *                        co_op     <-------  underscore (symbol)
  188.  *                        coat
  189.  *                        comb
  190.  *                        coop
  191.  *                        cork
  192.  *                        we're     <-------  apostrophe (punctuation)
  193.  *                        went
  194.  *                        were
  195.  */
  196. #define SORT_STRINGSORT           0x00001000  /* use string sort method */
  197.  
  198.  
  199. //
  200. //  Compare String Return Values.
  201. //
  202. #define CSTR_LESS_THAN            1           // string 1 less than string 2
  203. #define CSTR_EQUAL                2           // string 1 equal to string 2
  204. #define CSTR_GREATER_THAN         3           // string 1 greater than string 2
  205.  
  206.  
  207. //
  208. //  Code Page Default Values.
  209. //
  210. #define CP_ACP               0              // default to ANSI code page
  211. #define CP_OEMCP             1              // default to OEM  code page
  212. #define CP_MACCP             2              // default to MAC  code page
  213.  
  214. #define CP_UTF7              65000          // UTF-7 translation
  215. #define CP_UTF8              65001          // UTF-8 translation
  216.  
  217.  
  218. /*
  219.  *  Country Codes.
  220.  */
  221. #define CTRY_DEFAULT                     0
  222.  
  223. #define CTRY_AUSTRALIA                   61      /* Australia */
  224. #define CTRY_AUSTRIA                     43      /* Austria */
  225. #define CTRY_BELGIUM                     32      /* Belgium */
  226. #define CTRY_BRAZIL                      55      /* Brazil */
  227. #define CTRY_BULGARIA                    359     /* Bulgaria */
  228. #define CTRY_CANADA                      2       /* Canada */
  229. #define CTRY_CROATIA                     385     /* Croatia */
  230. #define CTRY_CZECH                       42      /* Czech Republic */
  231. #define CTRY_DENMARK                     45      /* Denmark */
  232. #define CTRY_FINLAND                     358     /* Finland */
  233. #define CTRY_FRANCE                      33      /* France */
  234. #define CTRY_GERMANY                     49      /* Germany */
  235. #define CTRY_GREECE                      30      /* Greece */
  236. #define CTRY_HONG_KONG                   852     /* Hong Kong */
  237. #define CTRY_HUNGARY                     36      /* Hungary */
  238. #define CTRY_ICELAND                     354     /* Iceland */
  239. #define CTRY_IRELAND                     353     /* Ireland */
  240. #define CTRY_ITALY                       39      /* Italy */
  241. #define CTRY_JAPAN                       81      /* Japan */
  242. #define CTRY_MEXICO                      52      /* Mexico */
  243. #define CTRY_NETHERLANDS                 31      /* Netherlands */
  244. #define CTRY_NEW_ZEALAND                 64      /* New Zealand */
  245. #define CTRY_NORWAY                      47      /* Norway */
  246. #define CTRY_POLAND                      48      /* Poland */
  247. #define CTRY_PORTUGAL                    351     /* Portugal */
  248. #define CTRY_PRCHINA                     86      /* Peoples' Republic of China */
  249. #define CTRY_ROMANIA                     40      /* Romania */
  250. #define CTRY_RUSSIA                      7       /* Russia */
  251. #define CTRY_SINGAPORE                   65      /* Singapore */
  252. #define CTRY_SLOVAK                      42      /* Slovak Republic */
  253. #define CTRY_SLOVENIA                    386     /* Slovenia */
  254. #define CTRY_SOUTH_KOREA                 82      /* South Korea */
  255. #define CTRY_SPAIN                       34      /* Spain */
  256. #define CTRY_SWEDEN                      46      /* Sweden */
  257. #define CTRY_SWITZERLAND                 41      /* Switzerland */
  258. #define CTRY_TAIWAN                      886     /* Taiwan */
  259. #define CTRY_TURKEY                      90      /* Turkey */
  260. #define CTRY_UNITED_KINGDOM              44      /* United Kingdom */
  261. #define CTRY_UNITED_STATES               1       /* United States */
  262.  
  263.  
  264. /*
  265.  *  Locale Types.
  266.  *
  267.  *  These types are used for the GetLocaleInfoW NLS API routine.
  268.  *
  269.  *  LOCALE_NOUSEROVERRIDE is also used in GetTimeFormatW and GetDateFormatW.
  270.  *
  271.  *  LOCALE_USE_CP_ACP is used in many of the A (Ansi) apis that need to do 
  272.  *  string translation.
  273.  */
  274. #define LOCALE_NOUSEROVERRIDE       0x80000000   /* do not use user overrides */
  275. #define LOCALE_USE_CP_ACP           0x40000000   /* use the system ACP */
  276.  
  277. #define LOCALE_ILANGUAGE            0x00000001   /* language id */
  278. #define LOCALE_SLANGUAGE            0x00000002   /* localized name of language */
  279. #define LOCALE_SENGLANGUAGE         0x00001001   /* English name of language */
  280. #define LOCALE_SABBREVLANGNAME      0x00000003   /* abbreviated language name */
  281. #define LOCALE_SNATIVELANGNAME      0x00000004   /* native name of language */
  282.  
  283. #define LOCALE_ICOUNTRY             0x00000005   /* country code */
  284. #define LOCALE_SCOUNTRY             0x00000006   /* localized name of country */
  285. #define LOCALE_SENGCOUNTRY          0x00001002   /* English name of country */
  286. #define LOCALE_SABBREVCTRYNAME      0x00000007   /* abbreviated country name */
  287. #define LOCALE_SNATIVECTRYNAME      0x00000008   /* native name of country */
  288.  
  289. #define LOCALE_IDEFAULTLANGUAGE     0x00000009   /* default language id */
  290. #define LOCALE_IDEFAULTCOUNTRY      0x0000000A   /* default country code */
  291. #define LOCALE_IDEFAULTCODEPAGE     0x0000000B   /* default oem code page */
  292. #define LOCALE_IDEFAULTANSICODEPAGE 0x00001004   /* default ansi code page */
  293. #define LOCALE_IDEFAULTMACCODEPAGE  0x00001011   /* default mac code page */
  294.  
  295. #define LOCALE_SLIST                0x0000000C   /* list item separator */
  296. #define LOCALE_IMEASURE             0x0000000D   /* 0 = metric, 1 = US */
  297.  
  298. #define LOCALE_SDECIMAL             0x0000000E   /* decimal separator */
  299. #define LOCALE_STHOUSAND            0x0000000F   /* thousand separator */
  300. #define LOCALE_SGROUPING            0x00000010   /* digit grouping */
  301. #define LOCALE_IDIGITS              0x00000011   /* number of fractional digits */
  302. #define LOCALE_ILZERO               0x00000012   /* leading zeros for decimal */
  303. #define LOCALE_INEGNUMBER           0x00001010   /* negative number mode */
  304. #define LOCALE_SNATIVEDIGITS        0x00000013   /* native ascii 0-9 */
  305.  
  306. #define LOCALE_SCURRENCY            0x00000014   /* local monetary symbol */
  307. #define LOCALE_SINTLSYMBOL          0x00000015   /* intl monetary symbol */
  308. #define LOCALE_SMONDECIMALSEP       0x00000016   /* monetary decimal separator */
  309. #define LOCALE_SMONTHOUSANDSEP      0x00000017   /* monetary thousand separator */
  310. #define LOCALE_SMONGROUPING         0x00000018   /* monetary grouping */
  311. #define LOCALE_ICURRDIGITS          0x00000019   /* # local monetary digits */
  312. #define LOCALE_IINTLCURRDIGITS      0x0000001A   /* # intl monetary digits */
  313. #define LOCALE_ICURRENCY            0x0000001B   /* positive currency mode */
  314. #define LOCALE_INEGCURR             0x0000001C   /* negative currency mode */
  315.  
  316. #define LOCALE_SDATE                0x0000001D   /* date separator */
  317. #define LOCALE_STIME                0x0000001E   /* time separator */
  318. #define LOCALE_SSHORTDATE           0x0000001F   /* short date format string */
  319. #define LOCALE_SLONGDATE            0x00000020   /* long date format string */
  320. #define LOCALE_STIMEFORMAT          0x00001003   /* time format string */
  321. #define LOCALE_IDATE                0x00000021   /* short date format ordering */
  322. #define LOCALE_ILDATE               0x00000022   /* long date format ordering */
  323. #define LOCALE_ITIME                0x00000023   /* time format specifier */
  324. #define LOCALE_ITIMEMARKPOSN        0x00001005   /* time marker position */
  325. #define LOCALE_ICENTURY             0x00000024   /* century format specifier (short date) */
  326. #define LOCALE_ITLZERO              0x00000025   /* leading zeros in time field */
  327. #define LOCALE_IDAYLZERO            0x00000026   /* leading zeros in day field (short date) */
  328. #define LOCALE_IMONLZERO            0x00000027   /* leading zeros in month field (short date) */
  329. #define LOCALE_S1159                0x00000028   /* AM designator */
  330. #define LOCALE_S2359                0x00000029   /* PM designator */
  331.  
  332. #define LOCALE_ICALENDARTYPE        0x00001009   /* type of calendar specifier */
  333. #define LOCALE_IOPTIONALCALENDAR    0x0000100B   /* additional calendar types specifier */
  334. #define LOCALE_IFIRSTDAYOFWEEK      0x0000100C   /* first day of week specifier */
  335. #define LOCALE_IFIRSTWEEKOFYEAR     0x0000100D   /* first week of year specifier */
  336.  
  337. #define LOCALE_SDAYNAME1            0x0000002A   /* long name for Monday */
  338. #define LOCALE_SDAYNAME2            0x0000002B   /* long name for Tuesday */
  339. #define LOCALE_SDAYNAME3            0x0000002C   /* long name for Wednesday */
  340. #define LOCALE_SDAYNAME4            0x0000002D   /* long name for Thursday */
  341. #define LOCALE_SDAYNAME5            0x0000002E   /* long name for Friday */
  342. #define LOCALE_SDAYNAME6            0x0000002F   /* long name for Saturday */
  343. #define LOCALE_SDAYNAME7            0x00000030   /* long name for Sunday */
  344. #define LOCALE_SABBREVDAYNAME1      0x00000031   /* abbreviated name for Monday */
  345. #define LOCALE_SABBREVDAYNAME2      0x00000032   /* abbreviated name for Tuesday */
  346. #define LOCALE_SABBREVDAYNAME3      0x00000033   /* abbreviated name for Wednesday */
  347. #define LOCALE_SABBREVDAYNAME4      0x00000034   /* abbreviated name for Thursday */
  348. #define LOCALE_SABBREVDAYNAME5      0x00000035   /* abbreviated name for Friday */
  349. #define LOCALE_SABBREVDAYNAME6      0x00000036   /* abbreviated name for Saturday */
  350. #define LOCALE_SABBREVDAYNAME7      0x00000037   /* abbreviated name for Sunday */
  351. #define LOCALE_SMONTHNAME1          0x00000038   /* long name for January */
  352. #define LOCALE_SMONTHNAME2          0x00000039   /* long name for February */
  353. #define LOCALE_SMONTHNAME3          0x0000003A   /* long name for March */
  354. #define LOCALE_SMONTHNAME4          0x0000003B   /* long name for April */
  355. #define LOCALE_SMONTHNAME5          0x0000003C   /* long name for May */
  356. #define LOCALE_SMONTHNAME6          0x0000003D   /* long name for June */
  357. #define LOCALE_SMONTHNAME7          0x0000003E   /* long name for July */
  358. #define LOCALE_SMONTHNAME8          0x0000003F   /* long name for August */
  359. #define LOCALE_SMONTHNAME9          0x00000040   /* long name for September */
  360. #define LOCALE_SMONTHNAME10         0x00000041   /* long name for October */
  361. #define LOCALE_SMONTHNAME11         0x00000042   /* long name for November */
  362. #define LOCALE_SMONTHNAME12         0x00000043   /* long name for December */
  363. #define LOCALE_SMONTHNAME13         0x0000100E   /* long name for 13th month (if exists) */
  364. #define LOCALE_SABBREVMONTHNAME1    0x00000044   /* abbreviated name for January */
  365. #define LOCALE_SABBREVMONTHNAME2    0x00000045   /* abbreviated name for February */
  366. #define LOCALE_SABBREVMONTHNAME3    0x00000046   /* abbreviated name for March */
  367. #define LOCALE_SABBREVMONTHNAME4    0x00000047   /* abbreviated name for April */
  368. #define LOCALE_SABBREVMONTHNAME5    0x00000048   /* abbreviated name for May */
  369. #define LOCALE_SABBREVMONTHNAME6    0x00000049   /* abbreviated name for June */
  370. #define LOCALE_SABBREVMONTHNAME7    0x0000004A   /* abbreviated name for July */
  371. #define LOCALE_SABBREVMONTHNAME8    0x0000004B   /* abbreviated name for August */
  372. #define LOCALE_SABBREVMONTHNAME9    0x0000004C   /* abbreviated name for September */
  373. #define LOCALE_SABBREVMONTHNAME10   0x0000004D   /* abbreviated name for October */
  374. #define LOCALE_SABBREVMONTHNAME11   0x0000004E   /* abbreviated name for November */
  375. #define LOCALE_SABBREVMONTHNAME12   0x0000004F   /* abbreviated name for December */
  376. #define LOCALE_SABBREVMONTHNAME13   0x0000100F   /* abbreviated name for 13th month (if exists) */
  377.  
  378. #define LOCALE_SPOSITIVESIGN        0x00000050   /* positive sign */
  379. #define LOCALE_SNEGATIVESIGN        0x00000051   /* negative sign */
  380. #define LOCALE_IPOSSIGNPOSN         0x00000052   /* positive sign position */
  381. #define LOCALE_INEGSIGNPOSN         0x00000053   /* negative sign position */
  382. #define LOCALE_IPOSSYMPRECEDES      0x00000054   /* mon sym precedes pos amt */
  383. #define LOCALE_IPOSSEPBYSPACE       0x00000055   /* mon sym sep by space from pos amt */
  384. #define LOCALE_INEGSYMPRECEDES      0x00000056   /* mon sym precedes neg amt */
  385. #define LOCALE_INEGSEPBYSPACE       0x00000057   /* mon sym sep by space from neg amt */
  386.  
  387. #if(WINVER >= 0x0400)
  388. #define LOCALE_FONTSIGNATURE        0x00000058   /* font signature */
  389. #define LOCALE_SISO639LANGNAME      0x00000059   /* ISO abbreviated language name */
  390. #define LOCALE_SISO3166CTRYNAME     0x0000005A   /* ISO abbreviated country name */
  391. #endif /* WINVER >= 0x0400 */
  392.  
  393. /*
  394.  *  Time Flags for GetTimeFormatW.
  395.  */
  396. #define TIME_NOMINUTESORSECONDS    0x00000001  /* do not use minutes or seconds */
  397. #define TIME_NOSECONDS             0x00000002  /* do not use seconds */
  398. #define TIME_NOTIMEMARKER          0x00000004  /* do not use time marker */
  399. #define TIME_FORCE24HOURFORMAT     0x00000008  /* always use 24 hour format */
  400.  
  401.  
  402. /*
  403.  *  Date Flags for GetDateFormatW.
  404.  */
  405. #define DATE_SHORTDATE             0x00000001  /* use short date picture */
  406. #define DATE_LONGDATE              0x00000002  /* use long date picture */
  407. #define DATE_USE_ALT_CALENDAR      0x00000004  /* use alternate calendar (if any) */
  408.  
  409.  
  410. /*
  411.  *  Calendar Types.
  412.  *
  413.  *  These types are used for the GetALTCalendarInfoW NLS API routine.
  414.  */
  415. #define CAL_ICALINTVALUE           0x00000001   /* calendar type */
  416. #define CAL_SCALNAME               0x00000002   /* native name of calendar */
  417. #define CAL_IYEAROFFSETRANGE       0x00000003   /* starting years of eras */
  418. #define CAL_SERASTRING             0x00000004   /* era name for IYearOffsetRanges */
  419. #define CAL_SSHORTDATE             0x00000005   /* short date format string */
  420. #define CAL_SLONGDATE              0x00000006   /* long date format string */
  421. #define CAL_SDAYNAME1              0x00000007   /* native name for Monday */
  422. #define CAL_SDAYNAME2              0x00000008   /* native name for Tuesday */
  423. #define CAL_SDAYNAME3              0x00000009   /* native name for Wednesday */
  424. #define CAL_SDAYNAME4              0x0000000a   /* native name for Thursday */
  425. #define CAL_SDAYNAME5              0x0000000b   /* native name for Friday */
  426. #define CAL_SDAYNAME6              0x0000000c   /* native name for Saturday */
  427. #define CAL_SDAYNAME7              0x0000000d   /* native name for Sunday */
  428. #define CAL_SABBREVDAYNAME1        0x0000000e   /* abbreviated name for Monday */
  429. #define CAL_SABBREVDAYNAME2        0x0000000f   /* abbreviated name for Tuesday */
  430. #define CAL_SABBREVDAYNAME3        0x00000010   /* abbreviated name for Wednesday */
  431. #define CAL_SABBREVDAYNAME4        0x00000011   /* abbreviated name for Thursday */
  432. #define CAL_SABBREVDAYNAME5        0x00000012   /* abbreviated name for Friday */
  433. #define CAL_SABBREVDAYNAME6        0x00000013   /* abbreviated name for Saturday */
  434. #define CAL_SABBREVDAYNAME7        0x00000014   /* abbreviated name for Sunday */
  435. #define CAL_SMONTHNAME1            0x00000015   /* native name for January */
  436. #define CAL_SMONTHNAME2            0x00000016   /* native name for February */
  437. #define CAL_SMONTHNAME3            0x00000017   /* native name for March */
  438. #define CAL_SMONTHNAME4            0x00000018   /* native name for April */
  439. #define CAL_SMONTHNAME5            0x00000019   /* native name for May */
  440. #define CAL_SMONTHNAME6            0x0000001a   /* native name for June */
  441. #define CAL_SMONTHNAME7            0x0000001b   /* native name for July */
  442. #define CAL_SMONTHNAME8            0x0000001c   /* native name for August */
  443. #define CAL_SMONTHNAME9            0x0000001d   /* native name for September */
  444. #define CAL_SMONTHNAME10           0x0000001e   /* native name for October */
  445. #define CAL_SMONTHNAME11           0x0000001f   /* native name for November */
  446. #define CAL_SMONTHNAME12           0x00000020   /* native name for December */
  447. #define CAL_SMONTHNAME13           0x00000021   /* native name for 13th month (if any) */
  448. #define CAL_SABBREVMONTHNAME1      0x00000022   /* abbreviated name for January */
  449. #define CAL_SABBREVMONTHNAME2      0x00000023   /* abbreviated name for February */
  450. #define CAL_SABBREVMONTHNAME3      0x00000024   /* abbreviated name for March */
  451. #define CAL_SABBREVMONTHNAME4      0x00000025   /* abbreviated name for April */
  452. #define CAL_SABBREVMONTHNAME5      0x00000026   /* abbreviated name for May */
  453. #define CAL_SABBREVMONTHNAME6      0x00000027   /* abbreviated name for June */
  454. #define CAL_SABBREVMONTHNAME7      0x00000028   /* abbreviated name for July */
  455. #define CAL_SABBREVMONTHNAME8      0x00000029   /* abbreviated name for August */
  456. #define CAL_SABBREVMONTHNAME9      0x0000002a   /* abbreviated name for September */
  457. #define CAL_SABBREVMONTHNAME10     0x0000002b   /* abbreviated name for October */
  458. #define CAL_SABBREVMONTHNAME11     0x0000002c   /* abbreviated name for November */
  459. #define CAL_SABBREVMONTHNAME12     0x0000002d   /* abbreviated name for December */
  460. #define CAL_SABBREVMONTHNAME13     0x0000002e   /* abbreviated name for 13th month (if any) */
  461.  
  462.  
  463. /*
  464.  *  Calendar Enumeration Value.
  465.  */
  466. #define ENUM_ALL_CALENDARS         0xffffffff   /* enumerate all calendars */
  467.  
  468.  
  469. /*
  470.  *  Calendar ID Values.
  471.  */
  472. #define CAL_GREGORIAN        1         /* Gregorian (localized) calendar */
  473. #define CAL_GREGORIAN_US     2         /* Gregorian (U.S.) calendar */
  474. #define CAL_JAPAN            3         /* Japanese Emperor Era calendar */
  475. #define CAL_TAIWAN           4         /* Republic of China Era calendar */
  476. #define CAL_KOREA            5         /* Korean Tangun Era calendar */
  477. #define CAL_HIJRI            6         /* Hijri (Arabic Lunar) calendar */
  478. #define CAL_THAI             7         /* Thai calendar */
  479. #define CAL_HEBREW           8         /* Hebrew calendar */
  480.  
  481.  
  482.  
  483.  
  484. /***************************************************************************\
  485. * Typedefs
  486. *
  487. * Define all types for the NLS component here.
  488. \***************************************************************************/
  489.  
  490. /*
  491.  *  Locale type constant.
  492.  */
  493. typedef DWORD LCTYPE;
  494.  
  495. /*
  496.  *  Calendar type constant.
  497.  */
  498. typedef DWORD CALTYPE;
  499.  
  500. /*
  501.  *  Calendar ID.
  502.  */
  503. typedef DWORD CALID;
  504.  
  505.  
  506. /*
  507.  *  CP Info.
  508.  */
  509.  
  510. typedef struct _cpinfo {
  511.     UINT    MaxCharSize;                    /* max length (bytes) of a char */
  512.     BYTE    DefaultChar[MAX_DEFAULTCHAR];   /* default character */
  513.     BYTE    LeadByte[MAX_LEADBYTES];        /* lead byte ranges */
  514. } CPINFO, *LPCPINFO;
  515.  
  516.  
  517. /*
  518.  *  Number format.
  519.  */
  520.  
  521. typedef struct _numberfmtA {
  522.     UINT    NumDigits;                 /* number of decimal digits */
  523.     UINT    LeadingZero;               /* if leading zero in decimal fields */
  524.     UINT    Grouping;                  /* group size left of decimal */
  525.     LPSTR   lpDecimalSep;              /* ptr to decimal separator string */
  526.     LPSTR   lpThousandSep;             /* ptr to thousand separator string */
  527.     UINT    NegativeOrder;             /* negative number ordering */
  528. } NUMBERFMTA, *LPNUMBERFMTA;
  529. typedef struct _numberfmtW {
  530.     UINT    NumDigits;                 /* number of decimal digits */
  531.     UINT    LeadingZero;               /* if leading zero in decimal fields */
  532.     UINT    Grouping;                  /* group size left of decimal */
  533.     LPWSTR  lpDecimalSep;              /* ptr to decimal separator string */
  534.     LPWSTR  lpThousandSep;             /* ptr to thousand separator string */
  535.     UINT    NegativeOrder;             /* negative number ordering */
  536. } NUMBERFMTW, *LPNUMBERFMTW;
  537. #ifdef UNICODE
  538. typedef NUMBERFMTW NUMBERFMT;
  539. typedef LPNUMBERFMTW LPNUMBERFMT;
  540. #else
  541. typedef NUMBERFMTA NUMBERFMT;
  542. typedef LPNUMBERFMTA LPNUMBERFMT;
  543. #endif // UNICODE
  544.  
  545.  
  546. /*
  547.  *  Currency format.
  548.  */
  549.  
  550. typedef struct _currencyfmtA {
  551.     UINT    NumDigits;                 /* number of decimal digits */
  552.     UINT    LeadingZero;               /* if leading zero in decimal fields */
  553.     UINT    Grouping;                  /* group size left of decimal */
  554.     LPSTR   lpDecimalSep;              /* ptr to decimal separator string */
  555.     LPSTR   lpThousandSep;             /* ptr to thousand separator string */
  556.     UINT    NegativeOrder;             /* negative currency ordering */
  557.     UINT    PositiveOrder;             /* positive currency ordering */
  558.     LPSTR   lpCurrencySymbol;          /* ptr to currency symbol string */
  559. } CURRENCYFMTA, *LPCURRENCYFMTA;
  560. typedef struct _currencyfmtW {
  561.     UINT    NumDigits;                 /* number of decimal digits */
  562.     UINT    LeadingZero;               /* if leading zero in decimal fields */
  563.     UINT    Grouping;                  /* group size left of decimal */
  564.     LPWSTR  lpDecimalSep;              /* ptr to decimal separator string */
  565.     LPWSTR  lpThousandSep;             /* ptr to thousand separator string */
  566.     UINT    NegativeOrder;             /* negative currency ordering */
  567.     UINT    PositiveOrder;             /* positive currency ordering */
  568.     LPWSTR  lpCurrencySymbol;          /* ptr to currency symbol string */
  569. } CURRENCYFMTW, *LPCURRENCYFMTW;
  570. #ifdef UNICODE
  571. typedef CURRENCYFMTW CURRENCYFMT;
  572. typedef LPCURRENCYFMTW LPCURRENCYFMT;
  573. #else
  574. typedef CURRENCYFMTA CURRENCYFMT;
  575. typedef LPCURRENCYFMTA LPCURRENCYFMT;
  576. #endif // UNICODE
  577.  
  578.  
  579.  
  580. /*
  581.  *  Enumeration function constants.
  582.  */
  583.  
  584. #ifdef STRICT
  585.  
  586. typedef BOOL (CALLBACK* LOCALE_ENUMPROCA)(LPSTR);
  587. typedef BOOL (CALLBACK* CODEPAGE_ENUMPROCA)(LPSTR);
  588. typedef BOOL (CALLBACK* DATEFMT_ENUMPROCA)(LPSTR);
  589. typedef BOOL (CALLBACK* TIMEFMT_ENUMPROCA)(LPSTR);
  590. typedef BOOL (CALLBACK* CALINFO_ENUMPROCA)(LPSTR);
  591.  
  592. typedef BOOL (CALLBACK* LOCALE_ENUMPROCW)(LPWSTR);
  593. typedef BOOL (CALLBACK* CODEPAGE_ENUMPROCW)(LPWSTR);
  594. typedef BOOL (CALLBACK* DATEFMT_ENUMPROCW)(LPWSTR);
  595. typedef BOOL (CALLBACK* TIMEFMT_ENUMPROCW)(LPWSTR);
  596. typedef BOOL (CALLBACK* CALINFO_ENUMPROCW)(LPWSTR);
  597.  
  598. #else /* !STRICT */
  599.  
  600. typedef FARPROC LOCALE_ENUMPROCA;
  601. typedef FARPROC CODEPAGE_ENUMPROCA;
  602. typedef FARPROC DATEFMT_ENUMPROCA;
  603. typedef FARPROC TIMEFMT_ENUMPROCA;
  604. typedef FARPROC CALINFO_ENUMPROCA;
  605.  
  606. typedef FARPROC LOCALE_ENUMPROCW;
  607. typedef FARPROC CODEPAGE_ENUMPROCW;
  608. typedef FARPROC DATEFMT_ENUMPROCW;
  609. typedef FARPROC TIMEFMT_ENUMPROCW;
  610. typedef FARPROC CALINFO_ENUMPROCW;
  611.  
  612. #endif /* !STRICT */
  613.  
  614. #ifdef UNICODE
  615.  
  616. #define LOCALE_ENUMPROC    LOCALE_ENUMPROCW
  617. #define CODEPAGE_ENUMPROC  CODEPAGE_ENUMPROCW
  618. #define DATEFMT_ENUMPROC   DATEFMT_ENUMPROCW
  619. #define TIMEFMT_ENUMPROC   TIMEFMT_ENUMPROCW
  620. #define CALINFO_ENUMPROC   CALINFO_ENUMPROCW
  621.  
  622. #else
  623.  
  624. #define LOCALE_ENUMPROC    LOCALE_ENUMPROCA
  625. #define CODEPAGE_ENUMPROC  CODEPAGE_ENUMPROCA
  626. #define DATEFMT_ENUMPROC   DATEFMT_ENUMPROCA
  627. #define TIMEFMT_ENUMPROC   TIMEFMT_ENUMPROCA
  628. #define CALINFO_ENUMPROC   CALINFO_ENUMPROCA
  629.  
  630. #endif // !UNICODE
  631.  
  632.  
  633.  
  634. /***************************************************************************\
  635. * Macros
  636. *
  637. * Define all macros for the NLS component here.
  638. \***************************************************************************/
  639.  
  640.  
  641.  
  642. /***************************************************************************\
  643. * Function Prototypes
  644. *
  645. * Only prototypes for the NLS APIs should go here.
  646. \***************************************************************************/
  647.  
  648. /*
  649.  *  Code Page Dependent APIs.
  650.  */
  651.  
  652. WINBASEAPI
  653. BOOL
  654. WINAPI
  655. IsValidCodePage(
  656.     UINT  CodePage);
  657.  
  658. WINBASEAPI
  659. UINT
  660. WINAPI
  661. GetACP(void);
  662.  
  663. WINBASEAPI
  664. UINT
  665. WINAPI
  666. GetOEMCP(void);
  667.  
  668. WINBASEAPI
  669. BOOL
  670. WINAPI
  671. GetCPInfo(
  672.     UINT      CodePage,
  673.     LPCPINFO  lpCPInfo);
  674.  
  675. WINBASEAPI
  676. BOOL
  677. WINAPI
  678. IsDBCSLeadByte(
  679.     BYTE  TestChar);
  680.  
  681. WINBASEAPI
  682. BOOL
  683. WINAPI
  684. IsDBCSLeadByteEx(
  685.     UINT  CodePage,
  686.     BYTE  TestChar);
  687.  
  688. WINBASEAPI
  689. int
  690. WINAPI
  691. MultiByteToWideChar(
  692.     UINT     CodePage,
  693.     DWORD    dwFlags,
  694.     LPCSTR   lpMultiByteStr,
  695.     int      cchMultiByte,
  696.     LPWSTR   lpWideCharStr,
  697.     int      cchWideChar);
  698.  
  699. WINBASEAPI
  700. int
  701. WINAPI
  702. WideCharToMultiByte(
  703.     UINT     CodePage,
  704.     DWORD    dwFlags,
  705.     LPCWSTR  lpWideCharStr,
  706.     int      cchWideChar,
  707.     LPSTR    lpMultiByteStr,
  708.     int      cchMultiByte,
  709.     LPCSTR   lpDefaultChar,
  710.     LPBOOL   lpUsedDefaultChar);
  711.  
  712.  
  713. /*
  714.  *  Locale Dependent APIs.
  715.  */
  716.  
  717. WINBASEAPI
  718. int
  719. WINAPI
  720. CompareStringA(
  721.     LCID     Locale,
  722.     DWORD    dwCmpFlags,
  723.     LPCSTR lpString1,
  724.     int      cchCount1,
  725.     LPCSTR lpString2,
  726.     int      cchCount2);
  727. WINBASEAPI
  728. int
  729. WINAPI
  730. CompareStringW(
  731.     LCID     Locale,
  732.     DWORD    dwCmpFlags,
  733.     LPCWSTR lpString1,
  734.     int      cchCount1,
  735.     LPCWSTR lpString2,
  736.     int      cchCount2);
  737. #ifdef UNICODE
  738. #define CompareString  CompareStringW
  739. #else
  740. #define CompareString  CompareStringA
  741. #endif // !UNICODE
  742.  
  743. WINBASEAPI
  744. int
  745. WINAPI
  746. LCMapStringA(
  747.     LCID     Locale,
  748.     DWORD    dwMapFlags,
  749.     LPCSTR lpSrcStr,
  750.     int      cchSrc,
  751.     LPSTR  lpDestStr,
  752.     int      cchDest);
  753. WINBASEAPI
  754. int
  755. WINAPI
  756. LCMapStringW(
  757.     LCID     Locale,
  758.     DWORD    dwMapFlags,
  759.     LPCWSTR lpSrcStr,
  760.     int      cchSrc,
  761.     LPWSTR  lpDestStr,
  762.     int      cchDest);
  763. #ifdef UNICODE
  764. #define LCMapString  LCMapStringW
  765. #else
  766. #define LCMapString  LCMapStringA
  767. #endif // !UNICODE
  768.  
  769. WINBASEAPI
  770. int
  771. WINAPI
  772. GetLocaleInfoA(
  773.     LCID     Locale,
  774.     LCTYPE   LCType,
  775.     LPSTR  lpLCData,
  776.     int      cchData);
  777. WINBASEAPI
  778. int
  779. WINAPI
  780. GetLocaleInfoW(
  781.     LCID     Locale,
  782.     LCTYPE   LCType,
  783.     LPWSTR  lpLCData,
  784.     int      cchData);
  785. #ifdef UNICODE
  786. #define GetLocaleInfo  GetLocaleInfoW
  787. #else
  788. #define GetLocaleInfo  GetLocaleInfoA
  789. #endif // !UNICODE
  790.  
  791. WINBASEAPI
  792. BOOL
  793. WINAPI
  794. SetLocaleInfoA(
  795.     LCID     Locale,
  796.     LCTYPE   LCType,
  797.     LPCSTR lpLCData);
  798. WINBASEAPI
  799. BOOL
  800. WINAPI
  801. SetLocaleInfoW(
  802.     LCID     Locale,
  803.     LCTYPE   LCType,
  804.     LPCWSTR lpLCData);
  805. #ifdef UNICODE
  806. #define SetLocaleInfo  SetLocaleInfoW
  807. #else
  808. #define SetLocaleInfo  SetLocaleInfoA
  809. #endif // !UNICODE
  810.  
  811. WINBASEAPI
  812. int
  813. WINAPI
  814. GetTimeFormatA(
  815.     LCID     Locale,
  816.     DWORD    dwFlags,
  817.     CONST SYSTEMTIME *lpTime,
  818.     LPCSTR lpFormat,
  819.     LPSTR  lpTimeStr,
  820.     int      cchTime);
  821. WINBASEAPI
  822. int
  823. WINAPI
  824. GetTimeFormatW(
  825.     LCID     Locale,
  826.     DWORD    dwFlags,
  827.     CONST SYSTEMTIME *lpTime,
  828.     LPCWSTR lpFormat,
  829.     LPWSTR  lpTimeStr,
  830.     int      cchTime);
  831. #ifdef UNICODE
  832. #define GetTimeFormat  GetTimeFormatW
  833. #else
  834. #define GetTimeFormat  GetTimeFormatA
  835. #endif // !UNICODE
  836.  
  837. WINBASEAPI
  838. int
  839. WINAPI
  840. GetDateFormatA(
  841.     LCID     Locale,
  842.     DWORD    dwFlags,
  843.     CONST SYSTEMTIME *lpDate,
  844.     LPCSTR lpFormat,
  845.     LPSTR  lpDateStr,
  846.     int      cchDate);
  847. WINBASEAPI
  848. int
  849. WINAPI
  850. GetDateFormatW(
  851.     LCID     Locale,
  852.     DWORD    dwFlags,
  853.     CONST SYSTEMTIME *lpDate,
  854.     LPCWSTR lpFormat,
  855.     LPWSTR  lpDateStr,
  856.     int      cchDate);
  857. #ifdef UNICODE
  858. #define GetDateFormat  GetDateFormatW
  859. #else
  860. #define GetDateFormat  GetDateFormatA
  861. #endif // !UNICODE
  862.  
  863. WINBASEAPI
  864. int
  865. WINAPI
  866. GetNumberFormatA(
  867.     LCID     Locale,
  868.     DWORD    dwFlags,
  869.     LPCSTR lpValue,
  870.     CONST NUMBERFMTA *lpFormat,
  871.     LPSTR  lpNumberStr,
  872.     int      cchNumber);
  873. WINBASEAPI
  874. int
  875. WINAPI
  876. GetNumberFormatW(
  877.     LCID     Locale,
  878.     DWORD    dwFlags,
  879.     LPCWSTR lpValue,
  880.     CONST NUMBERFMTW *lpFormat,
  881.     LPWSTR  lpNumberStr,
  882.     int      cchNumber);
  883. #ifdef UNICODE
  884. #define GetNumberFormat  GetNumberFormatW
  885. #else
  886. #define GetNumberFormat  GetNumberFormatA
  887. #endif // !UNICODE
  888.  
  889. WINBASEAPI
  890. int
  891. WINAPI
  892. GetCurrencyFormatA(
  893.     LCID     Locale,
  894.     DWORD    dwFlags,
  895.     LPCSTR lpValue,
  896.     CONST CURRENCYFMTA *lpFormat,
  897.     LPSTR  lpCurrencyStr,
  898.     int      cchCurrency);
  899. WINBASEAPI
  900. int
  901. WINAPI
  902. GetCurrencyFormatW(
  903.     LCID     Locale,
  904.     DWORD    dwFlags,
  905.     LPCWSTR lpValue,
  906.     CONST CURRENCYFMTW *lpFormat,
  907.     LPWSTR  lpCurrencyStr,
  908.     int      cchCurrency);
  909. #ifdef UNICODE
  910. #define GetCurrencyFormat  GetCurrencyFormatW
  911. #else
  912. #define GetCurrencyFormat  GetCurrencyFormatA
  913. #endif // !UNICODE
  914.  
  915. WINBASEAPI
  916. BOOL
  917. WINAPI
  918. EnumCalendarInfoA(
  919.     CALINFO_ENUMPROCA lpCalInfoEnumProc,
  920.     LCID              Locale,
  921.     CALID             Calendar,
  922.     CALTYPE           CalType);
  923. WINBASEAPI
  924. BOOL
  925. WINAPI
  926. EnumCalendarInfoW(
  927.     CALINFO_ENUMPROCW lpCalInfoEnumProc,
  928.     LCID              Locale,
  929.     CALID             Calendar,
  930.     CALTYPE           CalType);
  931. #ifdef UNICODE
  932. #define EnumCalendarInfo  EnumCalendarInfoW
  933. #else
  934. #define EnumCalendarInfo  EnumCalendarInfoA
  935. #endif // !UNICODE
  936.  
  937. WINBASEAPI
  938. BOOL
  939. WINAPI
  940. EnumTimeFormatsA(
  941.     TIMEFMT_ENUMPROCA lpTimeFmtEnumProc,
  942.     LCID              Locale,
  943.     DWORD             dwFlags);
  944. WINBASEAPI
  945. BOOL
  946. WINAPI
  947. EnumTimeFormatsW(
  948.     TIMEFMT_ENUMPROCW lpTimeFmtEnumProc,
  949.     LCID              Locale,
  950.     DWORD             dwFlags);
  951. #ifdef UNICODE
  952. #define EnumTimeFormats  EnumTimeFormatsW
  953. #else
  954. #define EnumTimeFormats  EnumTimeFormatsA
  955. #endif // !UNICODE
  956.  
  957. WINBASEAPI
  958. BOOL
  959. WINAPI
  960. EnumDateFormatsA(
  961.     DATEFMT_ENUMPROCA lpDateFmtEnumProc,
  962.     LCID              Locale,
  963.     DWORD             dwFlags);
  964. WINBASEAPI
  965. BOOL
  966. WINAPI
  967. EnumDateFormatsW(
  968.     DATEFMT_ENUMPROCW lpDateFmtEnumProc,
  969.     LCID              Locale,
  970.     DWORD             dwFlags);
  971. #ifdef UNICODE
  972. #define EnumDateFormats  EnumDateFormatsW
  973. #else
  974. #define EnumDateFormats  EnumDateFormatsA
  975. #endif // !UNICODE
  976.  
  977. WINBASEAPI
  978. BOOL
  979. WINAPI
  980. IsValidLocale(
  981.     LCID   Locale,
  982.     DWORD  dwFlags);
  983.  
  984. WINBASEAPI
  985. LCID
  986. WINAPI
  987. ConvertDefaultLocale(
  988.     LCID   Locale);
  989.  
  990. WINBASEAPI
  991. LCID
  992. WINAPI
  993. GetThreadLocale(void);
  994.  
  995. WINBASEAPI
  996. BOOL
  997. WINAPI
  998. SetThreadLocale(
  999.     LCID  Locale
  1000.     );
  1001.  
  1002. WINBASEAPI
  1003. LANGID
  1004. WINAPI
  1005. GetSystemDefaultLangID(void);
  1006.  
  1007. WINBASEAPI
  1008. LANGID
  1009. WINAPI
  1010. GetUserDefaultLangID(void);
  1011.  
  1012. WINBASEAPI
  1013. LCID
  1014. WINAPI
  1015. GetSystemDefaultLCID(void);
  1016.  
  1017. WINBASEAPI
  1018. LCID
  1019. WINAPI
  1020. GetUserDefaultLCID(void);
  1021.  
  1022. /*
  1023.  *  Locale Independent APIs.
  1024.  */
  1025.  
  1026. WINBASEAPI
  1027. BOOL
  1028. WINAPI
  1029. GetStringTypeExA(
  1030.     LCID     Locale,
  1031.     DWORD    dwInfoType,
  1032.     LPCSTR lpSrcStr,
  1033.     int      cchSrc,
  1034.     LPWORD   lpCharType);
  1035. WINBASEAPI
  1036. BOOL
  1037. WINAPI
  1038. GetStringTypeExW(
  1039.     LCID     Locale,
  1040.     DWORD    dwInfoType,
  1041.     LPCWSTR lpSrcStr,
  1042.     int      cchSrc,
  1043.     LPWORD   lpCharType);
  1044. #ifdef UNICODE
  1045. #define GetStringTypeEx  GetStringTypeExW
  1046. #else
  1047. #define GetStringTypeEx  GetStringTypeExA
  1048. #endif // !UNICODE
  1049.  
  1050. /*
  1051.  *  NOTE: The parameters for GetStringTypeA and GetStringTypeW are
  1052.  *        NOT the same.  The W version was shipped in NT 3.1.  The
  1053.  *        A version was then shipped in 16-bit OLE with the wrong
  1054.  *        parameters (ported from Win95).  To be compatible, we
  1055.  *        must break the relationship between the A and W versions
  1056.  *        of GetStringType.  There will be NO function call for the
  1057.  *        generic GetStringType.
  1058.  *
  1059.  *        GetStringTypeEx (above) should be used instead.
  1060.  */
  1061. WINBASEAPI
  1062. BOOL
  1063. WINAPI
  1064. GetStringTypeA(
  1065.     LCID     Locale,
  1066.     DWORD    dwInfoType,
  1067.     LPCSTR   lpSrcStr,
  1068.     int      cchSrc,
  1069.     LPWORD   lpCharType);
  1070.  
  1071. WINBASEAPI
  1072. BOOL
  1073. WINAPI
  1074. GetStringTypeW(
  1075.     DWORD    dwInfoType,
  1076.     LPCWSTR  lpSrcStr,
  1077.     int      cchSrc,
  1078.     LPWORD   lpCharType);
  1079.  
  1080.  
  1081. WINBASEAPI
  1082. int
  1083. WINAPI
  1084. FoldStringA(
  1085.     DWORD    dwMapFlags,
  1086.     LPCSTR lpSrcStr,
  1087.     int      cchSrc,
  1088.     LPSTR  lpDestStr,
  1089.     int      cchDest);
  1090. WINBASEAPI
  1091. int
  1092. WINAPI
  1093. FoldStringW(
  1094.     DWORD    dwMapFlags,
  1095.     LPCWSTR lpSrcStr,
  1096.     int      cchSrc,
  1097.     LPWSTR  lpDestStr,
  1098.     int      cchDest);
  1099. #ifdef UNICODE
  1100. #define FoldString  FoldStringW
  1101. #else
  1102. #define FoldString  FoldStringA
  1103. #endif // !UNICODE
  1104.  
  1105. WINBASEAPI
  1106. BOOL
  1107. WINAPI
  1108. EnumSystemLocalesA(
  1109.     LOCALE_ENUMPROCA lpLocaleEnumProc,
  1110.     DWORD            dwFlags);
  1111. WINBASEAPI
  1112. BOOL
  1113. WINAPI
  1114. EnumSystemLocalesW(
  1115.     LOCALE_ENUMPROCW lpLocaleEnumProc,
  1116.     DWORD            dwFlags);
  1117. #ifdef UNICODE
  1118. #define EnumSystemLocales  EnumSystemLocalesW
  1119. #else
  1120. #define EnumSystemLocales  EnumSystemLocalesA
  1121. #endif // !UNICODE
  1122.  
  1123. WINBASEAPI
  1124. BOOL
  1125. WINAPI
  1126. EnumSystemCodePagesA(
  1127.     CODEPAGE_ENUMPROCA lpCodePageEnumProc,
  1128.     DWORD              dwFlags);
  1129. WINBASEAPI
  1130. BOOL
  1131. WINAPI
  1132. EnumSystemCodePagesW(
  1133.     CODEPAGE_ENUMPROCW lpCodePageEnumProc,
  1134.     DWORD              dwFlags);
  1135. #ifdef UNICODE
  1136. #define EnumSystemCodePages  EnumSystemCodePagesW
  1137. #else
  1138. #define EnumSystemCodePages  EnumSystemCodePagesA
  1139. #endif // !UNICODE
  1140.  
  1141.  
  1142.  
  1143. #endif   // NONLS
  1144.  
  1145. #ifdef __cplusplus
  1146. }
  1147. #endif
  1148.  
  1149. #endif   // _WINNLS_
  1150.